package objects.cluster;

import objects.ObjectCodes;

import com.google.gson.Gson;

public class ClusterStatusData implements ObjectCodes{
	public String time;
	public String date;
	public int freenodes;
	public int freeprocs;
	public int activejobs;
	public int queuedjobs;
	
	
	public ClusterStatusData(){}

	
	public String toString()
	{
		return CLU_ST_INFO+"|"+ new Gson().toJson(this);
	}
	public static ClusterStatusData fromJSon(String json)
	{
		return new Gson().fromJson(json,ClusterStatusData .class);
	}
}
